package com.scanLab;

/**
 * 解码引擎类
 */

public class DecodeEngine {

    private static final String TAG = DecodeEngine.class.getSimpleName();



    /**
     * 开始解码
     * @param buffer YUV格式的字节数组
     * @param width  解码图片的宽度
     * @param height 解码图片的高度
     * @return 解码结果
     */
    public static ScanResult startScan(byte[] buffer, int width, int height){

        Scan scan = new Scan();
        ScanResult result = scan.scanImage(buffer, width, height);


        return  result;
    }


}
